package 接口隔离原则;

public class Runner implements Runnable,Swimable{

    @Override
    public void run() {
        System.out.println("铁人三项-跑步");
    }

    @Override
    public void swim() {
        System.out.println("铁人三项-游泳");
    }
}
